package com.platform.framework.serviceimpl.pub;


import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import com.platform.framework.dao.pub.LoginNameBusinessMybatisDao;
import com.platform.framework.entity.pub.LoginnameBusiness;
import com.platform.framework.serviceinf.pub.LoginNameBusinessService;

@Service("loginNameBusinessService")
public class LoginNameBusinessServiceImpl implements LoginNameBusinessService {

	@Autowired
	private LoginNameBusinessMybatisDao loginNameBusinessMybatisDao;
	
	//根据商户信息表id查询支付宝用户名商户信息关联表
	@Override
	public LoginnameBusiness getAlipayLoginNameInfoByBusinessId(String businessId){
		return loginNameBusinessMybatisDao.getAlipayLoginNameInfoByBusinessId(businessId);
	}
	//根据商户信息表id查询微信用户名商户信息关联表
	@Override
	public LoginnameBusiness getWxpayLoginNameInfoByBusinessId(String businessId){
		return loginNameBusinessMybatisDao.getWxpayLoginNameInfoByBusinessId(businessId);
	}
	
	// 查询所有的用户名
	@Override
	public List<LoginnameBusiness> getAllLoginName () {
		return loginNameBusinessMybatisDao.getAllLoginName();
	}

}

